<!DOCTYPE html>
<html>
<head>
<title>lesson.html</title>

<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<link rel="stylesheet" type="text/css" href="./css/all.css">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" type="text/css" href="./js/showDialog.css">
<script type="text/javascript" src="./swfobject.js"></script>
<script type="text/javascript" src="./js/jquery.js">
	
</script>
<script type="text/javascript" src="./js/leqi.js">
	
</script>
<script type="text/javascript" src="./js/comment.js">
	
</script>
<script type="text/javascript" src="./js/showDialog.js">
	
</script>
<script type="text/javascript">
	function turnPage(page, size) {
		getCommentAjax(page, size);
	}
	var type;
	var id;
	var path;
	$(document).ready(function() {
		setHeader("./header.html");
		createTip();
		path = GetQueryString("path");
		type = GetQueryString("type");
		id = GetQueryString("id");
		addUserLearne(1, 1);
		// var title = GetQueryString("title");
		if (type == null || id == null) {
			window.location.href = "../index.html";
			return;
		}
		path = path.replace(/\\/g, "/");

		$.ajax({
			url : encodeURI(path + "/leqi.txt"),

			dataType : "txt",
			type : "POST",
			success : function(msg) {
				msg = msg.replace(/\r\n/g, "<br/>");

				$("#content").html(msg);
			},
			error : function() {
			}
		});
		getComment();
	});

	function addUserLearne(userId, learneId) {
		$.ajax({
			url : "./learne/learne_addUserLearnE!addUserLearnE.do",
			data : {
				"userId" : 1,
				"learneId" : 1
			},
			dataType : "json",
			type : "POST",
			success : function(msg) {
				///alert(msg.msg);
			},
		});
	}
</script>


</head>

<body>
	<table style="width:100%;height:100%;table-layout: fixed;">
		<tr>
			<td style="width:15%;height:100%">
				<!-- left --></td>
			<td style="width:70%;height:100%">
				<!-- middle -->
				<table style="table-layout: fixed;">
					<tr>
						<td id="header"></td>
					</tr>
					<tr>
						<td>
							<!-- header -->
							<table style="width:100%;height:100%;table-layout: fixed;"
								class="readcontenttable">
								<tr>
									<td id="title" style="table-layout: fixed;" />
								</tr>

								<tr>
									<td id="information" style="table-layout: fixed;" />
								</tr>
								<tr>
									<td style="table-layout: fixed;font-size:16px">
										<table width="100%">
											<tr>
												<td style="height:300px">
													<div id="flashcontent"></div></td>
											</tr>

											<tr>
												<td id="content"></td>
											</tr>
										</table></td>
								</tr>
								<tr>
									<td>
										<!-- Baidu Button BEGIN -->
										<div id="bdshare"
											class="bdshare_t bds_tools_32 get-codes-bdshare">
											<a class="bds_qzone"></a> <a class="bds_tsina"></a> <a
												class="bds_tqq"></a> <a class="bds_renren"></a> <a
												class="bds_t163"></a> <span class="bds_more"></span> <a
												class="shareCount"></a>
										</div> <script type="text/javascript" id="bdshare_js"
											data="type=tools&amp;uid=0"></script> <script
											type="text/javascript" id="bdshell_js"></script> <script
											type="text/javascript">
												document
														.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion="
														+ Math
																.ceil(new Date() / 3600000)
											</script> <!-- Baidu Button END --></td>
								</tr>
							</table> <br />
							<div style="width:100%">
								<table style="width:100% ;table-layout: fixed;font-size:12px">
									<tr>
										<td align="left" id="per"></td>
										<td align="right" id="next"></td>
									</tr>
								</table>
							</div></td>

					</tr>

					<tr>
						<td id="body">
							<table style="width:100%">
								<tr>
									<td id="comment"></td>
								</tr>
								<tr>
									<td>
										<div class="page_nav" id="pages"></div></td>
								</tr>
							</table>

							<table id="editComment" style="width:70%">
								<tr>
									<td id="maodian">电子邮箱：</td>
									<td align="left"><input type="text" style="width:300px"
										id="email" name="email" />
									</td>
								</tr>
								<tr>
									<td>昵称：</td>
									<td align="left"><input type="text" style="width:300px"
										id="username" name="username" />
									</td>
								</tr>
								<tr>
									<td colspan="2"><textarea id="message" name="message"
											rows="12" cols="80" style="width: 100%">
              </textarea>
									</td>

								</tr>
								<tr>
									<td colspan="2"><input style="width:100px" type="button"
										onclick="addComment(-1)" value="提交" /></td>

								</tr>
							</table></td>
					</tr>
				</table></td>

			<td style="width:15%;height:100%">&nbsp;<!-- right --></td>
		</tr>
	</table>

	<div id="dialog" class="showRightOverFlow"></div>

	<script>
		var so = new SWFObject("LearnEweb.swf", "LearnEweb", "100%", "150", "9");
		so.write("flashcontent");
		function addPath() {
			//var test = document.getElementById('LearnEweb').test();
			// alert(test);
			// alert("flex");
			document.getElementById("LearnEweb").addURLPath(path);
			//document.getElementById('LearnEweb').addURLPath(path);
			// LearnEweb.setdata(path);
		}

		function test1() {
			document.getElementById("LearnEweb").addURLPath(path);
		}
	</script>
</body>
</html>
